import {defineAsyncComponent} from 'vue';

export const SelectOptionsMap = {
  /** 标签的位置 */
  SelectLabelPosition: [
    {value: 'outside', label: '饼图扇区外侧'},
    {value: 'inside', label: '饼图扇区内部'},
    {value: 'center', label: '饼图中心'}
  ]
};

/** 组件字典 */
export const ComponentMap = {
  Text: defineAsyncComponent(() => import('./components/Text.vue')),
  Number: defineAsyncComponent(() => import('./components/Number.vue')),
  Textarea: defineAsyncComponent(() => import('./components/Textarea.vue')),
  Select: defineAsyncComponent(() => import('./components/Select.vue')),
  Day: defineAsyncComponent(() => import('./components/Day.vue')),
  UploadFile: defineAsyncComponent(() => import('./components/UploadFile.vue')),
  UploadImg: defineAsyncComponent(() => import('./components/UploadImg.vue'))
};

/** 提示文案字典 */
export const PlaceholderMap = {
  text: '请输入文本',
  select: '请选择'
} as const;
